#include <reg167.h>
#include <stdio.h>
#include "../src/moteurcc.h"
#include "../src/rf_in.h"
#include "../src/surbat.h"
#include "../lib/ADC.h"
#include "../lib/USART.h"

//int c;
//char d;
 void main (void)
{
	int val=0;

	//InitRfIn();
	//InitMoteurCC();
	InitUsart();
	Init_ADC(0);

	IEN=1;

	
//	EnvoiPWM2(5000);
	
	//RunPWM2();
	while (1) 
  	{	
		int i,j;
	
		//CorrigirMoteurCC();
		if(TesterBat(1,0)==-1)
			EnvoiCharUsart('E');
		for(i=0;i<10000;i++)
			for(j=0;j<1;j++);
	  



	}
}
